package nonogram;

import java.util.Comparator;

public class SubGroupSizeComparator implements Comparator<SubGroup> {
	
	@Override
	public int compare(SubGroup x, SubGroup y) {
		int xSize = x.getSize();
		int ySize = y.getSize();
		
		if (xSize < ySize) {
			return -1;
		}
		if (xSize > ySize) {
			return 1;
		}
		
		return 0;
	}

}
